package user;

import Operation.*;

import java.util.Scanner;

public class librarian extends User {

    public librarian(String name) {
        super(name);
        this.ioOperations = new IoOperation[] {
                new exit(),
                new lend(),
                new restore(),
                new search(),
                new displaytion()
        };
    }

    @Override
    public int menu() {
        System.out.println("欢迎" + this.name + "来到管理员菜单！！请输入你的操作：");
        System.out.println("1.添加图书");
        System.out.println("2.删除图书");
        System.out.println("3.查找图书");
        System.out.println("4.显示图书");
        System.out.println("0.退出系统");

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的操作：");
        int choice = scanner.nextInt();
        return choice;
    }
}
